import Layout from "@/layout";

const financialRouter = {
  path: "/financial/receivables",
  component: Layout,
  redirect: "noRedirect",
  name: "financial",
  alwaysShow: true,
  hidden: false,
  meta: {
    title: "财务管理",
    abbre: "财务",
    icon: "left_menu_financial",
    navigation: "/financial",
    id: "407"
  },
  children: [
    /* 在线支付账单 */
    {
      path: "/financial/receivables",
      component: () => import("@/views/financial/financialReceivables"),
      name: "financial_receivables",
      hidden: false,
      meta: {
        title: "在线支付账单",
        noCache: false,
        navigation: "/financial/receivables",
        icon: "menu_big_data"
      }
    },
    {
      path: "/financial/receivables/see/:id",
      component: () => import("@/views/financial/financialReceivables_see"),
      name: "financial_receivables_see",
      hidden: true,
      meta: {
        title: "查看",
        bread: "在线支付账单,查看",
        noCache: true,
        navigation: "/financial/receivables",
        icon: "menu_big_data"
      }
    },
    {
      path: "/financial/receivables/record/:id",
      component: () => import("@/views/financial/financialReceivables_record"),
      name: "financial_receivables_record",
      hidden: true,
      meta: {
        title: "对账",
        bread: "在线支付账单,对账",
        noCache: true,
        navigation: "/financial/receivables",
        icon: "menu_big_data"
      }
    },
    /* 货到付款账单 */
    {
      path: "/financial/cash",
      component: () => import("@/views/financial/finacialCashOnDelivery"),
      name: "financial_cash",
      hidden: false,
      meta: {
        title: "货到付款账单",
        noCache: false,
        navigation: "/financial/cash",
        icon: "menu_big_data"
      }
    },
    {
      path: "/financial/cash/see/:id",
      component: () => import("@/views/financial/finacialCashOnDelivery_see"),
      name: "financial_cash_see",
      hidden: true,
      meta: {
        title: "查看",
        bread: "货到付款账单,查看",
        noCache: true,
        navigation: "/financial/cash",
        icon: "menu_big_data"
      }
    },
    {
      path: "/financial/cash/record/:id",
      component: () =>
        import("@/views/financial/finacialCashOnDelivery_record"),
      name: "financial_cash_record",
      hidden: true,
      meta: {
        title: "对账",
        bread: "货到付款账单,对账",
        noCache: true,
        navigation: "/financial/cash",
        icon: "menu_big_data"
      }
    },
    /* 用户批量对账 */
    {
      path: "/financial/batchrecord",
      component: () =>
        import("@/views/financial/financialReceivables_batchrecord"),
      name: "financial_batchrecord",
      hidden: false,
      meta: {
        title: "用户批量对账",
        noCache: true,
        navigation: "/financial/batchrecord",
        icon: "menu_big_data"
      }
    },

    {
      path: "/financial/receivables/batchrecord",
      component: () =>
        import("@/views/financial/financialReceivables_batchrecord"),
      name: "financial_receivables_batchrecord",
      hidden: true,
      meta: {
        title: "批量对账",
        bread: "商户结算,批量对账",
        noCache: true,
        navigation: "/financial/receivables",
        icon: "menu_big_data"
      }
    },
    /* 在线支付结算单 */
    {
      path: "/financial/onlineOrder",
      component: () => import("@/views/financial/financialReceivablesOrder"),
      name: "financial_onlineOrder",
      hidden: false,
      meta: {
        title: "在线支付结算单",
        noCache: true,
        navigation: "/financial/onlineOrder",
        icon: "menu_big_data"
      }
    },
    /* 货到付款结算单 */
    {
      path: "/financial/cashOrder",
      component: () => import("@/views/financial/finacialCashOnDeliveryOrder"),
      name: "financial_cashOrder",
      hidden: false,
      meta: {
        title: "货到付款结算单",
        noCache: false,
        navigation: "/financial/cashOrder",
        icon: "menu_big_data"
      }
    },
    {
      path: "/financial/cashOrder/detail",
      component: () =>
        import("@/views/financial/finacialCashOnDeliveryOrder_detail"),
      name: "financial_cashOrder_detail",
      hidden: true,
      meta: {
        title: "结算明细",
        bread: "货到付款结算单,结算明细",
        noCache: true,
        navigation: "/financial/cashOrder",
        icon: "menu_big_data"
      }
    },
    {
      path: "/financial/cashOrder/see/:id",
      component: () =>
        import("@/views/financial/finacialCashOnDeliveryOrder_see"),
      name: "financial_cashOrder_see",
      hidden: true,
      meta: {
        title: "查看",
        bread: "货到付款结算单,查看",
        noCache: true,
        navigation: "/financial/cashOrder",
        icon: "menu_big_data"
      }
    },
    /* 用户差额 */
    {
      path: "/financial/salesman",
      component: () => import("@/views/financial/financialSalesman"),
      name: "financial_salesman",
      hidden: false,
      meta: {
        title: "用户差额",
        noCache: false,
        navigation: "/financial/salesman",
        icon: "menu_big_data"
      }
    },
    {
      path: "/financial/salesman/flowing",
      component: () => import("@/views/financial/financialSalesman_flowing"),
      name: "financial_salesman_flowing",
      hidden: true,
      meta: {
        title: "差额流水",
        bread: "用户差额,差额流水",
        noCache: true,
        navigation: "/financial/salesman",
        icon: "menu_big_data"
      }
    },
    /* 货到付款总账 */
    {
      path: "/financial/cashLedger",
      component: () => import("@/views/financial/finacialCashOnDeliveryLedger"),
      name: "financial_cashLedger",
      hidden: false,
      meta: {
        title: "货到付款总账",
        noCache: true,
        navigation: "/financial/cashLedger",
        icon: "menu_big_data"
      }
    },

    /* 商户结算列表 */
    // {
    //   path: "/financial/payment",
    //   component: () => import("@/views/financial/financialPayment"),
    //   name: "financial_payment",
    //   hidden: false,
    //   meta: {
    //     title: "商户结算列表",
    //     noCache: true,
    //     navigation: "/financial/payment",
    //     icon: "menu_big_data"
    //   }
    // },

    /* 采购账单 */

    {
      path: "/financial/salesmanper",
      component: () => import("@/views/financial/SalesmanPerformance"),
      name: "financial_salesmanper",
      hidden: false,
      meta: {
        title: "业务员业绩",
        noCache: true,
        navigation: "/financial/salesmanper",
        icon: "menu_big_data"
      }
    },
    {
      path: "/financial/recharge",
      component: () => import("@/views/financial/financialRecharge"),
      name: "financial_recharge",
      hidden: false,
      meta: {
        title: "采购账单",
        noCache: false,
        navigation: "/financial/recharge",
        icon: "menu_big_data"
      }
    },
    {
      path: "/financial/recharge/see/:id",
      component: () => import("@/views/financial/financialRecharge_see"),
      name: "financial_recharge_see",
      hidden: true,
      meta: {
        title: "查看",
        bread: "采购结算,查看",
        noCache: true,
        navigation: "/financial/recharge",
        icon: "menu_big_data"
      }
    },
    {
      path: "/financial/recharge/final/:ids",
      component: () => import("@/views/financial/financialRecharge_final"),
      name: "financial_recharge_final",
      hidden: true,
      meta: {
        title: "结算",
        bread: "采购结算,结算",
        noCache: true,
        navigation: "/financial/recharge",
        icon: "menu_big_data"
      }
    },
    {
      path: "/financial/recharge/record/:id",
      component: () => import("@/views/financial/financialRecharge_record"),
      name: "financial_recharge_record",
      hidden: true,
      meta: {
        title: "对账",
        bread: "采购结算,对账",
        noCache: true,
        navigation: "/financial/recharge",
        icon: "menu_big_data"
      }
    },
    /* 采购结算单*/
    {
      path: "/financial/red",
      component: () => import("@/views/financial/financialRed"),
      name: "financial_red",
      hidden: false,
      meta: {
        title: "采购结算单",
        noCache: false,
        navigation: "/financial/red",
        icon: "menu_big_data"
      }
    },
    {
      path: "/financial/red/detail",
      component: () => import("@/views/financial/financialRed_detail"),
      name: "financial_red_detail",
      hidden: true,
      meta: {
        title: "结算明细",
        bread: "采购结算单,结算明细",
        noCache: true,
        navigation: "/financial/red",
        icon: "menu_big_data"
      }
    },
    {
      path: "/financial/red/see/:id",
      component: () => import("@/views/financial/financialRed_see"),
      name: "financial_red_see",
      hidden: true,
      meta: {
        title: "查看",
        bread: "结算列表,查看",
        noCache: true,
        navigation: "/financial/red",
        icon: "menu_big_data"
      }
    },
    {
      path: "/financial/pre",
      component: () => import("@/views/financial/financialPre"),
      name: "financial_pre",
      hidden: false,
      meta: {
        title: "采购总账",
        noCache: true,
        navigation: "/financial/pre",
        icon: "menu_big_data"
      }
    },
    /* 佣金 */
    {
      path: "/financial/commission",
      component: () => import("@/views/financial/financialCommission"),
      name: "financial_commission",
      hidden: false,
      meta: {
        title: "佣金账单",
        noCache: true,
        navigation: "/financial/commission",
        icon: "menu_big_data"
      }
    },
    // 虚单
    {
      path: "/financial/other",
      component: () => import("@/views/financial/financialOther"),
      name: "financial_other",
      hidden: false,
      meta: {
        title: "用户其他对账",
        noCache: true,
        navigation: "/financial/other",
        icon: "menu_big_data"
      }
    },
    {
      path: "/financial/other/user",
      component: () => import("@/views/financial/financialOther_member"),
      name: "financial_other_user",
      hidden: true,
      meta: {
        title: "目标用户",
        bread: "用户其他对账,目标用户",
        noCache: true,
        navigation: "/financial/other",
        icon: "menu_big_data"
      }
    },
    {
      path: "/financial/other/see/:id",
      component: () => import("@/views/financial/financialOther_see"),
      name: "financial_other_see",
      hidden: true,
      meta: {
        title: "账单查看",
        bread: "用户其他对账,账单查看",
        noCache: true,
        navigation: "/financial/other",
        icon: "menu_big_data"
      }
    },
    {
      path: "/financial/other/account/:id",
      component: () => import("@/views/financial/financialOther_account"),
      name: "financial_other_account",
      hidden: true,
      meta: {
        title: "对账",
        bread: "用户其他对账,对账",
        noCache: true,
        navigation: "/financial/other",
        icon: "menu_big_data"
      }
    }
  ]
};

export default financialRouter;
